package se.webbzon.boltzmann.object.factory;

import se.webbzon.boltzmann.environment.AbstractEnvironment;
import se.webbzon.boltzmann.factory.AbstractFactory;
import se.webbzon.oschi01.worldobject.WorldObject;

public abstract class InstanceFactory extends AbstractFactory<String,WorldObject,AbstractEnvironment> {
	
	// The name of the instance factory
	private final String factoryName;
	
	/*============================================================
	Constructors
	============================================================*/
	
	public InstanceFactory(String factoryName) {
		this.factoryName = factoryName;
	}
	
	/*============================================================
	Public Methods
	============================================================*/
	
	/** Returns the name of the instance factory. **/
	public String getName() {
		return factoryName;
	}
	
	@Override public String getKey() {
		return factoryName;
	}
	
}
